import { $demoi18n } from '@/utils/lang.js';

// 配置面板中 数据源的展示情况
const dataSourceTypeOptions = [
  {
    value: 'staticData',
    label: $demoi18n('panelData.staticData'),
    disabled: false,
  },
  {
    value: 'xMiner',
    label: 'xMiner',
    disabled: false,
  },
  // {
  //   value: 'xMinerPublicDatabase',
  //   label: $demoi18n('panelData.xMinerPublicDatabase'),
  //   disabled: false,
  // },
  // {
  //   value: 'xTag',
  //   label: 'xTag',
  //   disabled: false,
  // },
  {
    value: 'fabric',
    label: $demoi18n('panelData.thirdPartyApi'),
    disabled: false,
  },
  {
    label: $demoi18n('panel_config.xvuePageApi'),
    value: 'xVueApi',
    disabled: window._adoPremise.uc.theme === 'dark',
  },
  {
    value: 'xMinerRedisRealTime',
    label: $demoi18n('panelData.xMinerRedisRealTime'),
    disabled: false,
  },
  // {
  //   label: 'xIndex',
  //   value: 'xIndex',
  //   disabled: true,
  // },
  // {
  //   label: $demoi18n('panelData.dacDataSource'),
  //   value: 'Dac',
  //   disabled: false,
  // },
];

const auroraDataSourceTypeOptions = [
  {
    label: $demoi18n('panelData.staticData'),
    value: 'staticData',
    disabled: false,
  },
  {
    label: 'xMiner',
    value: 'xMiner',
    disabled: false,
  },
  {
    label: $demoi18n('panelData.xMinerPublicDatabase'),
    value: 'xMinerPublicDatabase',
    disabled: false,
  },
  {
    label: 'xTag',
    value: 'xTag',
    disabled: true,
  },
  {
    label: $demoi18n('panelData.thirdPartyApi'),
    value: 'fabric',
    disabled: false,
  },
  {
    value: 'xVueApi',
    label: $demoi18n('panel_config.xvuePageApi'),
    disabled: window._adoPremise.uc.theme === 'dark',
  },
  {
    value: 'xMinerRedisRealTime',
    label: $demoi18n('panelData.xMinerRedisRealTime'),
    disabled: true,
  },
  {
    label: 'xIndex',
    value: 'xIndex',
    disabled: true,
  },
  {
    label: $demoi18n('panelData.dacDataSource'),
    value: 'Dac',
    disabled: false,
  },
];
export { dataSourceTypeOptions, auroraDataSourceTypeOptions };

